import { useEffect, useRef, useState } from 'react';

import {
  sampleSize, //获得随机数
  uniq, //去重
  sortedUniq,//去重并排序
  take, //从0开始获得指定数组
  takeRight,
  max,
  min,
  lastIndexOf,
  orderBy,//排序
  slice//裁剪数组
} from "lodash"
import { historyResult } from '@/pages/historyResult';
import { allRedBollStr } from '@/pages/Home/getFilterResult';


// 脚手架示例组件
export default({
  locationIndex
}:any)=>{
  let minNum = 100000;
  let left = ((locationIndex - minNum) / 1107568)*100;
  left = parseFloat(left).toFixed(2) + "%";
  let width = parseFloat(((minNum*2) / 1107568)*100).toFixed(2) + "%";
  return (
    <>
      <div className='indexLocation-wrap' data-locationindex={locationIndex}>
          <span className='num' style={{"left": left, "width": width}}>
            <span></span>
          </span>
      </div>
    </>
  );
}